/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.acmwustl.bubble.controllers;

import org.acmwustl.bubble.gui.BalanceDisplayFrame;
import org.acmwustl.bubble.logic.ConnectionManager;

/**
 *
 * @author Tyler
 */
public class BalanceRequestController {

    public void getBalance(String keyIDCode) {
        int cents = ConnectionManager.getInstance().getBalanceInCents(keyIDCode);
        String name = ConnectionManager.getInstance().getName(keyIDCode);
        BalanceDisplayFrame bdf = new BalanceDisplayFrame(cents, name);
        bdf.setVisible(true);
    }
}
